<?php get_header(); ?>

<div id="casing">
<div id="content" >

<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>

<div class="post" id="post-<?php the_ID(); ?>">

<div class="title">
	<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
</div>

<div class="cover">
<div class="entry">
<?php the_content('Read the rest of this entry &raquo;'); ?>
<?php include (TEMPLATEPATH . '/ad.php'); ?>
<div class="clear"></div>
 <?php wp_link_pages(array('before' => '<p><strong>Trang: </strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
</div>
</div>

<div class="mdate">
<span class="author"> <?php the_author(); ?></span> 
<span class="clock"> On <?php the_time('F - j - Y'); ?></span> 
<span class="more"><?php edit_post_link(); ?></span>
</div>	

</div>

<div class="subpost">

<div class="subox">
<h3>Chuyên mục</h3>

<span><?php the_category(', '); ?></span>
<h3>THẺ</h3>
<span><?php the_tags(''); ?></span>

</div>
<div class="subox">
<h3>Bài viết liên quan</h3>
<?php echo do_shortcode('[related_posts]');?>
</div>


</div>

<?php comments_template(); ?>
<?php endwhile; else: ?>

		<h1 class="title">Không tìm thấy.</h1>
		<p>Xin lỗi, không tìm thấy kết quả nào phù hợp.</p>

<?php endif; ?>

</div>

<?php get_sidebar(); ?>
<?php get_footer(); ?>